﻿using System.Data.Common;
using Abp.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace LZ.HzStorage.EntityFrameworkCore
{
    public static class HzStorageDbContextConfigurer
    {
        public static void Configure<T>(DbContextOptionsBuilder<T> builder, string connectionString) where T : AbpDbContext
        {
            builder.UseOracle(connectionString, v => v.UseOracleSQLCompatibility("11"));
        }

        public static void Configure<T>(DbContextOptionsBuilder<T> builder, DbConnection connection) where T : AbpDbContext
        {
            builder.UseOracle(connection, v => v.UseOracleSQLCompatibility("11"));
        }
    }
}

